#!/usr/bin/env bash

echo -e "\033[34m--------------------wsgiprocess--------------\033[0m"

ps -ef | grep nb_uwsgi.ini | grep -v grep

sleep 0.5

echo -e '\n------------goingtoclose---------------'

ps -ef | grep nb_uwsgi.ini | grep -v grep | awk '{print $2}' | xargs kill -9 I

sleep 0.5